﻿@{
    ViewBag.Title = "首页";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

@section css{
    <style type="text/css">
        body {
            margin: 0;
            padding: 0;
            width: 100%;
            height: 100%;
        }

        .qrcode {
            position: absolute;
            top: 50%;
            left: 50%;
            margin-top: -150px;
            margin-left: -150px;
            /*此时宽和高都要固定*/
            width: 300px;
            height: 300px;
            text-align: center;
        }
    </style>
}

<div class="qrcode">
    <img src="/Content/images/taobangke.jpg" />
</div>
